package com.fun_ordering.mapper;

import com.fun_ordering.pojo.FoEmployee;
import com.fun_ordering.pojo.FoEmployeeExample;
import com.fun_ordering.vo.UpdatePasVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface FoEmployeeMapper {
    int countByExample(FoEmployeeExample example);

    int deleteByExample(FoEmployeeExample example);

    int deleteByPrimaryKey(Integer empId);

    int insert(FoEmployee record);

    int insertSelective(FoEmployee record);

    List<FoEmployee> selectByExample(FoEmployeeExample example);

    FoEmployee selectByOne(String empAccount);

    FoEmployee selectByPrimaryKey(Integer empId);

    int updateByExampleSelective(@Param("record") FoEmployee record, @Param("example") FoEmployeeExample example);

    int updateByExample(@Param("record") FoEmployee record, @Param("example") FoEmployeeExample example);

    int updateByPrimaryKeySelective(FoEmployee record);

    int updateByPrimaryKey(FoEmployee record);
//修改密码
    int updatePas(UpdatePasVO updatePasVO);
}